const a=[]
//参数:[[键，值]]
const wm=new WeakMap([[a,'1']]);

console.log(wm.get(a))// '1'



const wm1=new WeakMap([[[],'1']]);

console.log(wm.get([]))// undefined